.container {
  min-height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
}

.headerLeft {
  width: 40px;
}

.backArrow {
  font-size: 20px;
  color: #333;
  cursor: pointer;
}

.headerTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.headerRight {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 40px;
  justify-content: flex-end;
}

.moreIcon, .targetIcon {
  font-size: 16px;
  color: #666;
  cursor: pointer;
}

/* Patient Info */
.patientInfo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 16px;
  background-color: white;
  margin-bottom: 8px;
}

.patientLeft {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patientName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.patientId {
  font-size: 14px;
  color: #999;
}

.patientRight {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.switchIcon {
  font-size: 16px;
}

.switchText {
  font-size: 14px;
  color: #666;
}

/* Tabs */
.tabs {
  display: flex;
  background-color: white;
  margin-bottom: 8px;
}

.tab {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  position: relative;
  background-color: white;
}

.activeTab {
  color: white;
  background-color: #1890ff;
}

.activeTab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: #1890ff;
}

/* Payment List */
.paymentList {
  flex: 1;
  padding: 0 16px;
  overflow-y: auto;
}

.paymentItem {
  display: flex;
  background-color: white;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.itemLeft {
  width: 4px;
  background-color: #1890ff;
}

.itemContent {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.registrationNo {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.department, .doctor, .orderTime {
  font-size: 14px;
  color: #666;
}

.amount {
  font-size: 16px;
  font-weight: 600;
  color: #ff4d4f;
}

.detailsLink {
  font-size: 14px;
  color: #1890ff;
  cursor: pointer;
  margin-left: auto;
}

.itemRight {
  display: flex;
  align-items: center;
  padding: 16px;
}

.checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #d9d9d9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: white;
}

.checkbox.checked {
  background-color: #1890ff;
  border-color: #1890ff;
}

.checkmark {
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background-color: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

.footerLeft {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selectAllCheckbox {
  width: 20px;
  height: 20px;
  border: 2px solid #d9d9d9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: white;
}

.selectAllCheckbox.checked {
  background-color: #1890ff;
  border-color: #1890ff;
}

.selectAllText {
  font-size: 14px;
  color: #666;
}

.totalAmount {
  font-size: 16px;
  font-weight: 600;
  color: #ff4d4f;
}

.footerRight {
  flex-shrink: 0;
}

.payButton {
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  min-width: 100px;
}

.payButton:hover {
  background-color: #40a9ff;
}

.payButton:active {
  background-color: #096dd9;
}

/* Paid status */
.paidStatus {
  background-color: #52c41a;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.paidInfo {
  font-size: 14px;
  color: #666;
}

/* 患者切换弹框 */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modalContent {
  background-color: white;
  border-radius: 12px 12px 0 0;
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-out;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.modalHeader::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background-color: #d9d9d9;
  border-radius: 2px;
}

.modalTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.closeButton {
  font-size: 24px;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.closeButton:hover {
  background-color: #f5f5f5;
}

.patientList {
  max-height: 50vh;
  overflow-y: auto;
  padding-bottom: 20px;
}

.patientItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.patientItem:hover {
  background-color: #f8f9fa;
}

.patientItem.currentPatient {
  background-color: #e6f7ff;
  border-left: 4px solid #1890ff;
}

.patientItem .patientInfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patientItem .patientName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.patientItem .patientId {
  font-size: 14px;
  color: #999;
}

.currentIndicator {
  background-color: #1890ff;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 375px) {
  .header {
    padding: 10px 12px;
  }
  
  .patientInfo {
    padding: 12px;
  }
  
  .paymentList {
    padding: 0 12px;
  }
  
  .footer {
    padding: 12px;
  }
}
